/* 现代化表格样式系统 */

/* 基础表格样式 */
.modern-table {
  border: 2px solid #cbd5e1;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
  position: relative;
  overflow: hidden;
}

/* 表格右上角45度切角标签 */
.modern-table::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 30px 30px 0;
  border-color: transparent #3b82f6 transparent transparent;
  z-index: 10;
}

/* 表头样式 */
.modern-table .el-table__header-wrapper {
  background: #f1f5f9;
}

.modern-table .el-table__header {
  background: #f1f5f9;
}

.modern-table .el-table__header th {
  background: #f1f5f9 !important;
  color: #475569;
  font-weight: 600;
  font-size: 14px;
  padding: 16px 12px;
  border-bottom: 2px solid #cbd5e1;
  border-right: 1px solid #cbd5e1;
  text-align: left;
  position: relative;
}

.modern-table .el-table__header th:last-child {
  border-right: none;
}

/* 表格内容样式 */
.modern-table .el-table__body-wrapper {
  background: #ffffff;
}

.modern-table .el-table__body tr {
  background: #ffffff;
  transition: background-color 0.2s ease;
}

/* 隔行换色 */
.modern-table .el-table__body tr:nth-child(even) {
  background: #f8fafc;
}

.modern-table .el-table__body tr:hover {
  background: #eff6ff !important;
}

/* 单元格样式 */
.modern-table .el-table__body td {
  padding: 16px 12px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  font-size: 14px;
  color: #1e293b;
  text-align: left;
  position: relative;
}

.modern-table .el-table__body td:last-child {
  border-right: none;
}

/* 数字列右对齐 */
.modern-table .el-table__body td[data-numeric="true"] {
  text-align: right;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-weight: 500;
}

/* 状态标签样式 */
.modern-table .el-tag {
  border-radius: 0;
  font-weight: 600;
  padding: 4px 8px;
  border: 1px solid;
  position: relative;
}

.modern-table .el-tag--success {
  background: #f0fdf4;
  border-color: #22c55e;
  color: #15803d;
}

.modern-table .el-tag--warning {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #d97706;
}

.modern-table .el-tag--danger {
  background: #fef2f2;
  border-color: #ef4444;
  color: #dc2626;
}

.modern-table .el-tag--info {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #2563eb;
}

/* 进度条样式 */
.modern-table .el-progress {
  margin: 0;
}

.modern-table .el-progress-bar__outer {
  border-radius: 0;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
}

.modern-table .el-progress-bar__inner {
  border-radius: 0;
  transition: width 0.3s ease;
}

/* 表格底部阶梯式分层效果 */
.modern-table::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 8px;
  right: 8px;
  height: 8px;
  background: #94a3b8;
  border-radius: 0;
  z-index: 1;
}

.modern-table::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 4px;
  right: 4px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 0;
  z-index: 2;
}

/* 关键数据标注 */
.modern-table .el-table__body td[data-key="true"] {
  position: relative;
}

.modern-table .el-table__body td[data-key="true"]::before {
  content: '◆';
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: #3b82f6;
  font-size: 12px;
  font-weight: bold;
}

/* 现代化卡片样式 */
.modern-card {
  border-radius: 0;
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
  overflow: hidden;
}

.modern-card .el-card__header {
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  padding: 16px 20px;
}

.modern-card .el-card__body {
  padding: 20px;
}

/* 现代化按钮样式 */
.modern-button {
  border-radius: 0;
  font-weight: 600;
  border: 2px solid;
  transition: all 0.2s ease;
}

.modern-button--primary {
  background: #3b82f6;
  border-color: #3b82f6;
}

.modern-button--primary:hover {
  background: #2563eb;
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.modern-button--success {
  background: #22c55e;
  border-color: #22c55e;
}

.modern-button--success:hover {
  background: #16a34a;
  border-color: #16a34a;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3);
}

.modern-button--warning {
  background: #f59e0b;
  border-color: #f59e0b;
}

.modern-button--warning:hover {
  background: #d97706;
  border-color: #d97706;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
}

/* 现代化表单控件样式 */
.modern-input .el-input__wrapper {
  border-radius: 0;
  border: 2px solid #e2e8f0;
  box-shadow: none;
}

.modern-input .el-input__wrapper:hover {
  border-color: #3b82f6;
}

.modern-select .el-input__wrapper {
  border-radius: 0;
  border: 2px solid #e2e8f0;
  box-shadow: none;
}

.modern-select .el-input__wrapper:hover {
  border-color: #3b82f6;
}

/* 现代化分页样式 */
.modern-pagination .el-pager li {
  border-radius: 0;
  border: 1px solid #e2e8f0;
  margin: 0 2px;
}

.modern-pagination .el-pager li.is-active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
}

/* 现代化复选框样式 */
.modern-checkbox .el-checkbox__input {
  border-radius: 0;
}

.modern-checkbox .el-checkbox__input.is-checked .el-checkbox__inner {
  background: #3b82f6;
  border-color: #3b82f6;
  border-radius: 0;
}

/* 统计卡片样式 */
.stat-card {
  text-align: center;
  padding: 20px;
  background: #f8fafc;
  border-radius: 0;
  margin-bottom: 16px;
  border: 2px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #3b82f6;
}

.stat-number {
  font-size: 32px;
  font-weight: 600;
  color: #3b82f6;
  margin-bottom: 8px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.stat-number.success {
  color: #22c55e;
}

.stat-number.error {
  color: #ef4444;
}

.stat-number.warning {
  color: #f59e0b;
}

.stat-label {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .modern-table .el-table__header th,
  .modern-table .el-table__body td {
    padding: 12px 8px;
    font-size: 13px;
  }
  
  .stat-card {
    padding: 16px;
  }
  
  .stat-number {
    font-size: 24px;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modern-table {
  animation: fadeInUp 0.3s ease-out;
}

.stat-card {
  animation: fadeInUp 0.3s ease-out;
  animation-delay: 0.1s;
  animation-fill-mode: both;
}
